package com.cyw.note.manage.domain.bo;

import com.cyw.common.core.domain.BaseEntity;
import com.cyw.common.core.validate.AddGroup;
import com.cyw.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 友情链接业务对象 t_links
 *
 * @author Chenyw
 * @date 2022-08-07
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("友情链接业务对象")
public class LinksBo extends BaseEntity {

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id", required = true)
    @NotNull(message = "主键id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 博客地址
     */
    @ApiModelProperty(value = "博客地址", required = true)
    @NotBlank(message = "博客地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String blogAddress;

    /**
     * 博客名称
     */
    @ApiModelProperty(value = "博客名称", required = true)
    @NotBlank(message = "博客名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String blogName;

    /**
     * 首图
     */
    @ApiModelProperty(value = "首图", required = true)
    @NotBlank(message = "首图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pictureAddress;


}
